<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<link rel="stylesheet" type="text/css" href="<%=path%>/css/button.css"/>
<link rel="stylesheet" type="text/css" href="<%=path%>/css/inputs.css"/>
<link rel="stylesheet" type="text/css" href="<%=path%>/css/app.css"/>

<div id="menubar">
    <img src="<%=path%>/images/left.png" style="margin-top:auto;margin-bottom:auto;width:15px; height:15px">读者查询
</div>

    <s:if test="#session.loginState == 1 && #session.isAdmin == true">
        <form name="serachReader" action="<%=path%>/admin/AdminAction_searchReader.action" method="post">
            <table id="inputs" width="35%"
                   style="margin: 0 auto; position: absolute;top: 150px; left: 0; bottom: 0; right: 0;overflow:auto;">

                <tr>
                    <th style="text-align:center;color:#0088cc">读者编号：</th>
                    <td>
                        <input id="readerid" name="readerid" type="text" placeholder="Reader ID"
                               maxlength="20" autofocus>
                    </td>
                </tr>

                <tr>
                    <th style="text-align:center;color:#0088cc">读者姓名：</th>
                    <td>
                        <input id="readername" name="readername" type="text" placeholder="Reader Name"
                               maxlength="20">
                    </td>
                </tr>
            </table>

            <table width="10%"
                   style="margin: 0 auto; position: absolute;top: 300px; left: 0; bottom: 0; right: 0;overflow:auto;text-align: center">
                <tr>
                    <td>
                        <input type="submit" class="button" value="搜索"/>
                    </td>
                </tr>
            </table>
        </form>
    </s:if>
    <s:else>
        <table width="100%" style="margin-top:50px;">
            <tr>
                <td>
                    <h2  style="text-align: center">请使用管理员账号登录！</h2>
                </td>
            </tr>
        </table>
    </s:else>
</html>
